package com.yyq.adms.yyb.softwareManager.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BaseEntity;

/**
 * 获批软著
 * @author 杨应滨
 * @2012-12-3
 *
 */
@Entity
@Table(name="reportcertificate")
public class ReportCertificate  extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	/**
	 * 著作权人
	 */
	private String author;
	
	/**
	 * 所属平台ID
	 */
	private String belongPlateFormID;
	
	/**
	 * 所属年份  不计入数据库
	 */
	private String belongYear;
	
	
	/**
	 * 证书号
	 */
	private String bookCode;
	
	/**
	 * 开发完成时间
	 */
	private Date finishedDate;
	
	/**
	 * 首次发表时间
	 */
	private Date firstPublishDate;
	
	/**
	 * 权利取得方式
	 */
	private String getWay;
	
	/**
	 * 是否可用
	 */
	private Integer isEnabled;
	
	/**
	 * 是否全局可视
	 */
//	private Integer isGlobal;
	
	/**
	 * 是否有附件
	 */
//	private Integer isHavePatents;
	
	
	/**
	 * 登记号
	 */
	private String recordCode;
	
	/**
	 * 软件名称
	 */
	private String reportName;
	
	/**
	 * 权利范围
	 */
	private String rightScope;
	
	/**
	 * 报送单位
	 */
	private String sentDep;
	
	/**
	 * 数据来源
	 */
	private Integer sourceID;

	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	
	public ReportCertificate() {
		super();
	}

	public ReportCertificate(String reportName, String author,
			String recordCode, String bookCode, String getWay,
			String rightScope, Date finishedDate, Date firstPublishDate,
			String belongPlateFormID,Integer isEnabled,String sentDep,Integer sourceID) {
		super();
		this.reportName = reportName;
		this.author = author;
		this.recordCode = recordCode;
		this.bookCode = bookCode;
		this.getWay = getWay;
		this.rightScope = rightScope;
		this.finishedDate = finishedDate;
		this.firstPublishDate = firstPublishDate;
		this.belongPlateFormID = belongPlateFormID;
		this.sentDep = sentDep;
//		this.isGlobal = isGlobal;
//		this.isHavePatents = isHavePatents;
		this.isEnabled = isEnabled;
		this.sourceID = sourceID;
	}

	@Column(name = "author", length = 100)
	public String getAuthor() {
		return author;
	}

	@Column(name = "belongplateformid")
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}

	@Transient
	public String getBelongYear() {
		return belongYear;
	}

	@Column(name = "bookcode",length=100)
	public String getBookCode() {
		return bookCode;
	}

	@Column(name = "finisheddate")
	public Date getFinishedDate() {
		return finishedDate;
	}
	@Column(name = "firstpublishdate")
	public Date getFirstPublishDate() {
		return firstPublishDate;
	}

	@Column(name = "getway",length=200)
	public String getGetWay() {
		return getWay;
	}

	@Column(name = "isenabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}

//	@Column(name = "isglobal")
//	public Integer getIsGlobal() {
//		return isGlobal;
//	}
//
//	@Column(name = "ishavepatents")
//	public Integer getIsHavePatents() {
//		return isHavePatents;
//	}

	@Column(name = "recordcode",length=100)
	public String getRecordCode() {
		return recordCode;
	}

	@Column(name = "reportname",length=100)
	public String getReportName() {
		return reportName;
	}

	@Column(name = "rightscope",length=100)
	public String getRightScope() {
		return rightScope;
	}

	@Transient
	public String getSentDep() {
		return sentDep;
	}

	@Column(name = "sourceid")
	public Integer getSourceID() {
		return sourceID;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}

	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}

	public void setBookCode(String bookCode) {
		this.bookCode = bookCode;
	}

	public void setFinishedDate(Date finishedDate) {
		this.finishedDate = finishedDate;
	}

	public void setFirstPublishDate(Date firstPublishDate) {
		this.firstPublishDate = firstPublishDate;
	}

	public void setGetWay(String getWay) {
		this.getWay = getWay;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

//	public void setIsGlobal(Integer isGlobal) {
//		this.isGlobal = isGlobal;
//	}
//
//	public void setIsHavePatents(Integer isHavePatents) {
//		this.isHavePatents = isHavePatents;
//	}


	public void setRecordCode(String recordCode) {
		this.recordCode = recordCode;
	}

	public void setReportName(String reportName) {
		this.reportName = reportName;
	}

	public void setRightScope(String rightScope) {
		this.rightScope = rightScope;
	}

	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}

	public void setSourceID(Integer sourceID) {
		this.sourceID = sourceID;
	}
	
	
	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	

}
